package com.roncoo.education.course.feign.interfaces;

import com.roncoo.education.course.feign.qo.TagQO;
import com.roncoo.education.course.feign.vo.TagVo;
import com.roncoo.education.course.feign.vo.UserTagNameVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

/**
 * 广告信息
 *
 * @author wujing
 */
@FeignClient(value = "roncoo-education-course-service")
public interface IFeignTag {

    @RequestMapping(value = "/feign/course/tag/save", method = RequestMethod.POST)
    Long save(@RequestBody TagQO qo);

    @RequestMapping(value = "/feign/course/tag/updateById", method = RequestMethod.POST)
    int updateById(@RequestBody TagQO qo);

    @RequestMapping(value = "/feign/course/tag/delete/{id}", method = RequestMethod.DELETE)
    int deleteById(@PathVariable(value = "id") Long id);

//    @RequestMapping(value = "/feign/course/adv/get/{id}", method = RequestMethod.GET)
//    AdvVO getById(@PathVariable(value = "id") Long id);

	@RequestMapping(value = "/feign/course/Tag/findByTag", method = RequestMethod.POST)
	List<TagVo> findByTag();

    @RequestMapping(value = "/feign/course/tag/userNoByTagId", method = RequestMethod.POST)
    ArrayList<UserTagNameVO> userNoByTagId(@RequestParam("tagids")String tagids);

}
